import React from 'react';
import { Swiper } from 'antd-mobile-v5';
import './index.less';
export default function (props) {
  const items = props.img?.map((item, index) => {
    return (
      <Swiper.Item key={item.id}>
        <div className="banner_a">
          <img src={item.img} className="banner_img" />
        </div>
      </Swiper.Item>
    );
  });
  return (
    <div>
      <Swiper autoplay={true}>{items}</Swiper>
    </div>
  );
}
